package cn.edu.xjtu.nbrash.xbarsuite.result;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import android.app.Activity;
import cn.edu.xjtu.nbrash.xbarsuite.R;

import com.google.zxing.client.result.ParsedResult;

/**
 * NullResultHandler.java
 *
 * @author Jingkai Tang jingkaitang@gmail.com
 * @version 0.0.1 Nov 19, 2014 6:10:57 PM
 *
 */
public class NullResultHandler extends ResultHandler {

	NullResultHandler(Activity activity, ParsedResult result) {
		super(activity, result);
	}

	@Override
	public int getButtonCount() {
		return 0;
	}

	@Override
	public int getButtonText(int index) {
		return -1;
	}

	@Override
	public List<Map<String, String>> getData() {
		return new ArrayList<Map<String, String>>();
	}

	@Override
	public int getDisplayTitle() {
		return R.string.result_null;
	}

	@Override
	public void handleButtonPress(int index) {
	}

	@Override
	public int getIcon() {
		return R.drawable.null_;
	}

}
